<?php

$_SESSION['manager'] = false;
 if (isset($_SERVER['PHP_AUTH_USER']) and $_SERVER['PHP_AUTH_USER'] == 'fallen') {
    if (isset($_SERVER['PHP_AUTH_PW']) and $_SERVER['PHP_AUTH_PW'] == 'testyou') {
        $_SESSION['manager'] = true;
    }
  }
if (!$_SESSION['manager']) {
    header('WWW-Authenticate: Basic realm="My Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Please enter correct username and password';
    exit;
}


?>
